﻿<%@ Page Title="تاریخچه پیامها" Language="C#" MasterPageFile="~/MasterPages/Main.Master"
    AutoEventWireup="true" CodeBehind="MessageHistory.aspx.cs" Inherits="RazakiSite.PagesForum.MessageHistory" %>

<%@ Register Src="../UserControls/Forum/UCMessage.ascx" TagName="UCMessage" TagPrefix="uc1" %>
<%@ Register Src="../UserControls/Forum/UCMessageEdit.ascx" TagName="UCMessageEdit"
    TagPrefix="uc2" %>
<%@ Register Src="../UserControls/Forum/UCMessageActions.ascx" TagName="UCMessageActions"
    TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolderMain" runat="server">
    <uc3:UCMessageActions ID="MessageActions" runat="server" ShowBackToList="True" />
    <table class="MessageForumHistory">
        <colgroup>
            <col class="TitleColum" />
            <col />
        </colgroup>
        <tr>
            <td class="Title Question">
                سوأل
            </td>
            <td>
                <uc1:UCMessage ID="UCMessageQuestion" runat="server" IsReply="false" />
            </td>
        </tr>
        <tr>
            <td class="Title Replies">
                پاسخ ها
            </td>
            <td>
                <minoo:RazakiRepeater ID="RptReply" runat="server" OnItemDataBound="RptReply_ItemDataBound">
                    <HeaderTemplate>
                        <table class="Wide">
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr>
                            <td class='<%#(int.Parse(DataBinder.Eval(Container, "ItemIndex").ToString()) % 2 == 0 )?"ListItem":string.Empty%>'>
                                <uc1:UCMessage ID="UCMessageReply" runat="server" IsReply="true" Subject="" Date='<%#UtilitiesBLL.GetPersianDate(DataBinder.Eval(Container.DataItem, "CreatedDate"),true)%>'
                                    Text='<%#DataBinder.Eval(Container.DataItem, "Text")%>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table>
                    </FooterTemplate>
                </minoo:RazakiRepeater>
            </td>
        </tr>
        <tr>
            <td class="Title ReplySend">
                ثبت پاسخ
            </td>
            <td>
                <uc2:UCMessageEdit ID="UCMessageEditReply" runat="server" OnDataAdded="UCMessageEditReply_DataAdded" />
            </td>
        </tr>
    </table>
</asp:Content>
